package com.songlanyun.modules.order.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.songlanyun.common.drive.RootEntity;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 服务商品订单核销使用记录
 * 
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2021-03-02 16:01:16
 */
@Data
@TableName("yxt_sale_service_goods_verification_record")
public class SaleServiceGoodsVerificationRecord extends RootEntity<Long,SaleServiceGoodsVerificationRecord> implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Long id;
	/**
	 * 核销码
	 */
	@NotBlank(message = "核销码不能为空")
	private String verificationCode;
	/**
	 * 核销管理员
	 */
	@NotBlank(message = "核销管理员不能为空")
	private String admin;
	/**
	 * 核销时间
	 */
	@NotNull(message = "核销时间不能为空")
	private Date verificationTime;
	/**
	 * 核销卡id
	 */
	@NotNull(message = "核销卡id不能为空")
	private Long serviceGoodsCardId;
	/**
	 * 
	 */
	@NotNull(message = "子订单id不能为空")
	private Long childOrderId;
	/**
	 * 
	 */
	@NotNull(message = "订单id不能为空")
	private Long orderId;

	@Length(max = 200,message = "备注不能为空")
	private String remark;

	@Override
	public Long getIdentity() {
		return getId();
	}
}
